@charset "UTF-8";

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: #fff;
    background: #fff;
    /*background: #000c3b;*/
    font-family: sans-serif;
}

.container {
    /*max-width: 1600px;*/
    /*margin: 0 auto;*/
    /*padding: 0 1rem;*/

    width: 100%;
    aspect-ratio: 16 / 9; /* ✅ 保持宽高比 */
    height: auto;
}

/*.chart-container {*/
/*  width: 100%;                !* ✅ 占满所在 .panel 宽度 *!*/
/*  aspect-ratio: 16 / 9;       !* ✅ 保持比例响应式（替代固定高度） *!*/
/*  height: auto;               !* ✅ 不写死高度 *!*/
/*}*/

.main {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
}

.head {
    height: 4rem;
}

.head .title {
    padding-top: 0.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.head .title .title-left,
.head .title .title-right {
    width: 30%;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.head .title .title-left {
    background-image: url(images/title-left.png);
}

.head .title .title-right {
    background-image: url(images/title-right.png);
}

.head .title .title-value {
    font-size: 1.8rem;
    line-height: 48px;
    padding: 0 2em;
    text-align: center;
    color: #032d60;
}

.content {
    /*display: grid;*/
    /*grid-template-columns: 1fr 1.5fr 1fr;*/
    /*gap: 1rem;*/
    /*padding-bottom: 1rem;*/

    /*display: flex;*/
    /*flex-wrap: wrap; !* ✅ 允许自动换行 *!*/
    /*gap: 0; !* ✅ 去除默认间隙 *!*/
    /*justify-content: flex-start;*/

    /*display: grid;*/
    /*grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); !* ✅ 自动铺满，每个最小480px *!*/
    /*gap: 1.2rem; !* ✅ 控制图表之间的距离 *!*/
    /*justify-items: center; !* ✅ 图表水平居中 *!*/
    /*align-items: start;*/
    /*padding: 1rem;*/

    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ✅ 每行固定3个 */
    gap: 1.5rem;
    padding: 1.5rem;
}

.content-left,
.content-right {
    /*display: grid;*/
    gap: 1.5rem;
}

.content-left {
    grid-template-rows: repeat(3, 1fr);
}

.content-center {
    /*display: grid;*/
    grid-template-rows: 35% 1fr;
    gap: 1.5rem;
}

.content-right {
    grid-template-rows: repeat(2, 1fr);
}

.panel {
    position: relative;
    /*display: flex;*/

    /*display: inline-block;*/
    /*width: fit-content; !* ✅ 适应内容宽度（现代浏览器支持） *!*/
    /*height: fit-content;*/
    /*float: left;*/
    /*flex-direction: column;*/
    background: linear-gradient(to left, #26c6f0, #26c6f0) left top no-repeat,
    linear-gradient(to bottom, #26c6f0, #26c6f0) left top no-repeat,
    linear-gradient(to left, #26c6f0, #26c6f0) right top no-repeat,
    linear-gradient(to bottom, #26c6f0, #26c6f0) right top no-repeat,
    linear-gradient(to left, #26c6f0, #26c6f0) left bottom no-repeat,
    linear-gradient(to bottom, #26c6f0, #26c6f0) left bottom no-repeat,
    linear-gradient(to left, #26c6f0, #26c6f0) right bottom no-repeat,
    linear-gradient(to left, #26c6f0, #26c6f0) right bottom no-repeat;
    background-size: 2px 20px, 20px 2px, 2px 20px, 20px 2px;
    border: 2px solid #032d60;
    box-shadow: inset 0 0 30px #07417a;

    /*display: block;*/
    /*width: fit-content;*/
    /*height: fit-content;*/
    /*padding: 10px;*/
    /*margin: 0;*/
    /*box-sizing: border-box;*/
    /*float: none;*/

    width: 100%; /* ✅ 占满整格 */
    height: auto;
    box-sizing: border-box;
    padding: 10px;
}

.p-title {
    position: absolute;
    top: -0.8rem;
    left: 20%;
    right: 20%;
    line-height: 1.4rem;
    font-size: 1.2rem;
    text-align: center;
    /*background-color: #000c3b;*/
    background-color: #fff;
    /*color: #83c7e3;*/
    color: #032d60;
}

.p-title::before {
    content: "[";
    color: #105eda;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.p-title::after {
    content: "]";
    color: #105eda;
    font-weight: bold;
    position: absolute;
    right: 0;
}

.p-content {
    flex-grow: 1;
    margin: 1.2rem 0.5rem 0.5rem 0.5rem;
}

.chart {
    width: 100%;
    height: 100%;
    position: relative;
}

.chart:empty {
    border: 1px dashed #fff;
    opacity: 0.3;
}

.chart:empty::after {
    content: "图表";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1rem;
    opacity: 0.6;
}
